Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for tar #67

Merged
merged 7 commits into from
Jul 3, 2024
Merged

Add tests for tar #67

merged 7 commits into from
Jul 3, 2024

Conversation

bertold
Copy link
Collaborator

@bertold bertold commented Jul 1, 2024

  • there is no library for compressing using the traditional Z format, so I added a test file for this

  • added a new dependency for writing bzip2

  • there was also a typo in the error message in tar.go that I fixed

@davidnewhall
Copy link
Contributor

Thanks for this!

If you need to pull in another library to compress files, I'd rather just put them in the repo. I'm not against that, but when you can use the stdlib or already-available open source package we use, go ahead and create the files. The tests also run on Windows, so os.exec is going to be a problem. Again, just create some test files and include them.

Copy link
Contributor

@davidnewhall davidnewhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh, I'm actually okay with this. Thanks again!

Will leave it open for a day in case you want to make some changes.

tar.go Outdated Show resolved Hide resolved
@bertold
Copy link
Collaborator Author

bertold commented Jul 2, 2024

Thank you for the invite to collaborate - I am humbled. Let me know @davidnewhall if it is OK to merge.

Copy link
Contributor

@davidnewhall davidnewhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to merge. Thanks! (please squash and merge)

@bertold bertold merged commit 301c147 into golift:main Jul 3, 2024
8 checks passed
@bertold bertold deleted the bk/tar-test branch July 5, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants